# name : pandas to_csv (write) append with open
# key : to_csv.append.with.open:write@pandas
# contributor: Shuguang Sun
# --
with open(r"path/to/file.csv", mode = 'a') as f:
    ${1:df}.to_csv(f, header=f.tell()==0, index = False)